package com.xtaller.lazy.lib.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @version V1.0
 * @author: Taller
 * @date: 2019-04-10
 * @Description:
 */
@Data
@Component
@ConfigurationProperties(prefix = "tps.oss")
public class OSS {
    private String region;
    private String roleArn;
    private String bucket;
    private String accessKeyID;
    private String accessKeySecret;
    private String endpoint;
    private String dir;
    private String policy = "{" +
            "              \"Statement\": [" +
            "                {" +
            "                  \"Action\": [" +
            "                    \"oss:*\"" +
            "                  ]," +
            "                  \"Effect\": \"Allow\"," +
            "                  \"Resource\": [\"acs:oss:*:*:*\"]" +
            "                }" +
            "              ]," +
            "              \"Version\": \"1\"" +
            "            }";
    private Long tokenExpireTime;
}
